<!doctype html>
<html lang="zh-CN">

<head>
    <title>
        #if(C.get('language')=='ch')
            #(category.title.split(',')[0] ??)
        #else
            #(category.title.split(',')[1] ??)
        #end
    </title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" type="image/x-ico" href="favicon.ico" />
    <!-- Bootstrap CSS -->
    #if(C.get('language')=='ch')
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/all.min.css">
    <link rel="stylesheet" href="css/style.min.css">
    #else
    <link rel="stylesheet" href="en/css/bootstrap.min.css">
    <link rel="stylesheet" href="en/css/all.min.css">
    <link rel="stylesheet" href="en/css/style.min.css">        
    #end
    
</head>

<body>
    <div class="flex-container">
        <nav class="nav top-nav">
            <div class="container">
                <div class="row">
                   #include("language.html")
                </div>
            </div>
        </nav>
        <header class="masthead mb-auto">
            <div class="inner logo">
                <div class="webtitle">
                    <div class="title-h3 masthead-brand">国产飞机运营伙伴当局信息系统</div>
                    <div class="title-h4">Platform among CAAC MOU Partners for China-Made Aircraft</div>
                </div>
                #if(C.get('language')=='ch')
                    #include("mainnav.html")
                #else
                    #include("mainnav_en.html")
                #end
                
                <div class="search-form">
                    #include("searchhead.html")
                </div>
            </div>
            
            #if(C.get('language')=='ch')
                #include("menu.html")
            #else
                #include("menu_en.html")
            #end
        </header>
        <div class="container">
            <div class="page-title">
                
                #if(C.get('language')=='ch')
                    #(category.title.split(',')[0] ??)
                #else
                    #(category.title.split(',')[1] ??)
                #end
                
            </div>
            <div class="row">
                
                <div class="col-md-3 col-sm-12 left-bar">
                    <div class="list-menu">
                        <a href="/article/category/#if(C.get('fslug'))#(C.get('fslug'))#else#(category.slug)#end?fslug=#(C.get('fslug'))&language=#(C.get('language'))">
						<i class="fas fa-file"></i>
						    
						    #if(C.get('ftitle'))
                            
						    #if(C.get('language')=='ch')
                                <span #if(category.url=='/article/category/维修服务') style="color: red" #end>#(C.get('ftitle').split(',')[0] ??)</span>
                            #else
                                <span #if(category.url=='/article/category/维修服务') style="color: red" #end>#(C.get('ftitle').split(',')[1] ??)</span>
                            #end
                            
                            #else
                            
                            #if(C.get('language')=='ch')
                                <span #if(category.url=='/article/category/维修服务') style="color: red" #end>#(category.title.split(',')[0] ??)</span>
                            #else
                                <span #if(category.url=='/article/category/维修服务') style="color: red" #end>#(category.title.split(',')[1] ??)</span>
                            #end
                            
                            #end
						   
                            <ul>
                                
                                #if(C.get('parentId'))
                                    #categories(parentId=C.get('parentId'))
                                    #for(categorie : categories)
                                    <li>
                                        <a #if(category.url==categorie.url) style="color: red" #end href="#(categorie.url ??)?parentId=#(parentId=C.get('parentId'))&ftitle=#(C.get('ftitle'))&language=#(C.get('language'))&fslug=#(C.get('fslug'))">
                                        #if(C.get('language')=='ch')
                                            #(categorie.title.split(',')[0] ??)
                                        #else
                                            #(categorie.title.split(',')[1] ??)
                                        #end
                                        </a>
                                    </li>
                                    #end
                                    #end
                                #else
                                    #categories(parentId=category.id)
                                    #for(categorie : categories)
                                    <li>
                                        <a #if(category.url==categorie.url) style="color: red" #end  href="#(categorie.url ??)?parentId=#(category.id)&ftitle=#(category.title ??)&language=#(C.get('language'))&fslug=#(category.slug)">
                                        #if(C.get('language')=='ch')
                                            #(categorie.title.split(',')[0] ??)
                                        #else
                                            #(categorie.title.split(',')[1] ??)
                                        #end
                                        </a>
                                    </li>
                                    #end
                                    #end
                                #end
                                
                            </ul>
                        </a>
                    </div>
                </div>
                
                <div class="col-md-9 col-sm-12 right-list">
                    <nav class="breadcrumb">
                        <a class="breadcrumb-item" href="#if(C.get('language')=='ch') /index_ch #else / #end">
                        #if(C.get('language')=='ch')
                            首页
                        #else
                            Home
                        #end
                        </a>
                        <a class="breadcrumb-item" href="/article/category/维修服务">
                            
                        #if(C.get('language')=='ch')
                            维修服务
                        #else
                            Maintenance service
                        #end
                        </a>
                        <span class="breadcrumb-item active">
                            
                        #if(C.get('language')=='ch')
                        #if(category.title.split(',')[0]!='维修服务')
                            #(category.title.split(',')[0] ??)
                        #end
                        #else
                        #if(category.title.split(',')[1]!='Maintenance Service')
                            #(category.title.split(',')[1] ??)
                        #end
                        #end
                            
                        </span>
                    </nav>
                    #include("searchbody.html")
                    #if(C.get('language')=='ch')
                        #set(tagid= 43)
                    #else
                        #set(tagid= 44)
                    #end
                    
                    #ArticlePageFourElementsPage(categoryId=category.id,tagid=tagid,field_name='title',pageSize=10)
                    <table class="table table-striped" id="data">
                        <thead>
                            <tr class="olfont">
                                #if(C.get('language')=='ch')
                                <th style="width:10%">序号</th>
                                <th>名称</th>
                                <th style="width:15%">发布日期</th>
                                #else
                                <th style="width:15%">Serial number</th>
                                <th style="width:65%">Name</th>
                                <th>Release date</th> 
                                #end
                            </tr>
                        </thead>
                        <tbody>
                            #for(entity:ArticlePageFourElementsPage.list)
                            <tr>
                                <td scope="row">#(for.index+1)</td>
                                <td><a href="#(entity.url)?language=#(C.get('language'))&ftitle=#(category.title ??)&fslug=#(category.slug ??)">#(entity.title ??)</a></td>
                                <td>
                                     #if(C.get('language')=='ch')
                                    #date(entity.modified, "yyyy-MM-dd")
                                    #else
                                    #date(entity.modified, "dd-MM-yyyy")
                                    #end
                                    
                                </td>
                            </tr>
                            #end
                        </tbody>
                    </table>
                    
                    
                    #if(C.get('language')=='ch')
                    
                    <!--分页代码-->
                    #ArticlePageFourElementsPaginate()
                    <nav aria-label="Page navigation example" class="mt-4">
                        <ul class="pagination justify-content-center ">
                            #for(page : pages)
                            <li class="page-item #(page.style ??)">
                                <a class="page-link" href="#(page.url ??)?language=#(C.get('language'))">
                                    #(page.text ??)
                                </a>
                            </li>
                            #end
                        </ul>
                    </nav>
                    #end
                       
                    #else
                        
                    <!--分页代码-->
                    #ArticlePageFourElementsPaginate()
                    <nav aria-label="Page navigation example" class="mt-4">
                        <ul class="pagination justify-content-center ">
                            #for(page : pages)
                            <li class="page-item #(page.style ??)">
                                <a class="page-link" href="#(page.url ??)?language=#(C.get('language'))">
                                    #if(page.text == "上一页")
                                    Previous page
                                    #elseif(page.text == "下一页")
                                    next page
                                    #else
                                    #(page.text)
                                    #end
                                </a>
                            </li>
                            #end
                        </ul>
                    </nav>
                    #end
                    
                    #end
                    
                    #end
                    
                </div>
            </div>
        </div>
    </div>
#include("bottom.html")

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
</body>

</html>